<?php
use yii\widgets\ActiveForm;
use yii\helpers\Html;
?>
<div class="">
    <div class="yx-praise-list-box yx-praise-list-box1">
        <table width="100%" class="table-form">
            <tr>
                <th class="zx-goods-table">是否补课</th>
                <td><?php
                      switch ($model->is_makeup){
                          case 1:
                              echo '是';
                              break;
                          default:
                              echo '否';
                              break;
                      }
                    ?></td>
            </tr>
            <tr>
                <th class="zx-goods-table"><?= $model->attributeLabels()['remarks']; ?></th>
                <td><?=$model->remarks?></td>
            </tr>
        </table>
    </div>
</div>
<?php
$js = <<<JS
    $(document).on('change','input[name="GoodsPrice[is_activity]"]',function(){
         var vals = $(this).val();
         if(vals === '1'){
             $('#activity_box').css('display','');
         }else {
             $('#activity_box').css('display','none');
         }
    });
JS;
$this->registerJS($js);
?>